package com.haredot.service;

import com.github.pagehelper.Page;
import com.haredot.entity.Course;
import com.haredot.entity.Student;
import com.haredot.entity.User;
import com.haredot.vo.LayuiPage;
import com.haredot.vo.R;

import java.util.List;
import java.util.Map;

public interface StudentService {
    /**
     * 保存用户
     * @param student
     * @return
     */
    R<Student> save(Student student);

    R<Page<Student>> queryStudentList(LayuiPage layuiPage, Long sno, User user);

    R<Student> queryStudentById(Long sno);

    R<Student> modify(Student student);

    R<?> remove(Long sno);

    R<?> batchRemove(List<Long> ids);

    R<Course> queryCourseListBySno(Long sno);

    R<?> bindCourse(Long sno, List<Integer> courseIds);

    List<Map<String, Object>> queryCourseListByCurrentStudent(Long sno);
}
